package com.example.teacher.network;



import com.example.teacher.bean.BasicResponse;
import com.example.teacher.bean.LoginBean;
import com.example.teacher.bean.StudentBean;
import com.example.teacher.bean.TestCenterListBean;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by window on 2018/3/7.
 */

public interface NetWorkApi {
    /*
    * 获取考场列表
    */
    @GET("room/list")
    Observable<BasicResponse<List<TestCenterListBean>>> getRoomList();
   //登入
    @POST("sign/signOn")
    Observable<BasicResponse<LoginBean>> logIn(@Query("roomCode") String roomCode, @Query("socketCode") String socketId);
    //开始考试
    @GET("sign/startExam")
    Observable<BasicResponse> startExam(@Query("roomCode") String roomCode,@Query("staffId") String staffId);
    //结束考试
    @GET("sign/endExam")
    Observable<BasicResponse> endExam(@Query("roomCode") String roomCode,@Query("staffId") String staffId);
    //获取考生列表
    @GET("sign/getStuList")
    Observable<BasicResponse<List<StudentBean.ChildDataBean>>> getStuList(@Query("roomCode") String roomCode);
}
